package com.pic.others.service;

import com.pic.common.utils.R;
import com.pic.others.domain.dto.category.CategoryWithOnePictureDTO;
import com.pic.others.domain.dto.category.CategoryWithPicturesDTO;
import com.pic.others.domain.po.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pic.others.domain.po.Picture;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author koshi
 * @since 2023-11-24
 */
public interface ICategoryService extends IService<Category> {

   R< List<CategoryWithPicturesDTO>> getCategoryWithPicture();


   R<String> getCategoryInPython();

   R<List<CategoryWithOnePictureDTO>> getCategoryPictureByFatherDTO();

   R<List<CategoryWithPicturesDTO>> getCategoryPictueByFatherId( Long categoryId);

   R<List<Picture>> getPictureByCategory(Long categoryId);


   R<String> changeCategoryName(Long categoryId, String value);



}
